<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Kameo TypeScript Example</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      line-height: 1.6;
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
    }
    h1 {
      color: #333;
      border-bottom: 1px solid #eee;
      padding-bottom: 10px;
    }
    #console {
      background-color: #f4f4f4;
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 15px;
      white-space: pre-wrap;
      font-family: monospace;
      max-height: 400px;
      overflow-y: auto;
    }
  </style>
</head>
<body>
  <h1>Kameo WASM TypeScript Example</h1>
  <p>This example demonstrates using the Kameo actor system from TypeScript via WebAssembly.</p>
  <p>Check the browser console (F12) to see the output of the actor operations.</p>
  
  <h2>Console Output:</h2>
  <div id="console"></div>
  
  <script>
    // Override console.log to display in the page
    const consoleDiv = document.getElementById('console');
    const originalConsoleLog = console.log;
    const originalConsoleError = console.error;
    
    console.log = function() {
      const args = Array.from(arguments);
      consoleDiv.textContent += '> ' + args.join(' ') + '\n';
      originalConsoleLog.apply(console, args);
    };
    
    console.error = function() {
      const args = Array.from(arguments);
      consoleDiv.textContent += '! ERROR: ' + args.join(' ') + '\n';
      originalConsoleError.apply(console, args);
    };
  </script>
  <script src="bundle.js"></script>
</body>
</html> 